package com.sesame;

import com.github.kevinsawicki.http.HttpRequest;

import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        String url = "http://localhost:8057/test/readDb";
        for (int i = 1; i <= 3; i++) {
            for (int j = 0; j < 5; j++) {
                final int id = i;
                new Thread(() -> {
                    Map params = new HashMap();
                    params.put("id", id);
                    HttpRequest.get(url).form(params).body();
                }).start();
            }
        }

    }
}
